<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %>
<%@ taglib uri="http://pontoclass.com.br/jstl/pclass" prefix="pclass" %>
<%@ attribute name="visivel" required="false" rtexprvalue="true" type="java.lang.Boolean" %>
<%@ attribute name="id" required="false" rtexprvalue="true" type="java.lang.String" %>
<div>
	<c:if test="${(empty pageScope.visivel) or not pageScope.visivel}">
		<c:set value="visibility:hidden;" var="visibilityStyle"/>
	</c:if>
	<c:choose>
		<c:when test="${not empty pageScope.id}">
			<c:set value="${pageScope.id}" var="_id"/>
		</c:when>
		<c:otherwise>
			<c:set value="_DIVtelaEscura" var="_id"/>
		</c:otherwise>
	</c:choose>
	<div id="${pageScope['_id']}" 
	     style="${pageScope.visibilityStyle}top: 0px; left: 0px; z-index: 100; opacity:0.8; filter: alpha(opacity=80); width:100%; height:100%; 
	            position: fixed !important; position: absolute; background: <pclass:getAttribute name='cor_principal'/>;"
	     align="center" >
	</div>
</div>